package net.simflow.swf.analyzer.graph.stats.opt;

import java.util.ArrayList;
import java.util.Collection;

import net.simflow.swf.analyzer.network.data.Node;

public class GraphNodeListAnalyzer {

	private static GraphNodeListAnalyzer instance = new GraphNodeListAnalyzer();

	private GraphNodeListAnalyzer() {
	}

	public static GraphNodeListAnalyzer getInstance() {
		return instance;
	}

	public ArrayList<Node> analyze(Collection<Node> nodes) {
		if (nodes == null) {
			return null;
		}

		ArrayList<Node> a = new ArrayList<Node>();
		for (Node n : nodes) {
			a.add(n);
		}

		return a;
	}
}
